home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94b.txt
/
000061_icon-group-sender _Tue Sep 20 15:41:27 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-09
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 20 Sep 1994 14:33:31 MST
From: "Art Eschenlauer" <eschen@molbio.cbs.umn.edu>
Message-Id: <9409202041.AA18914@molbio.cbs.umn.edu>
Subject: Question: conjunction in Icon and C
To: icon-group@cs.arizona.edu (icon-group@cs.arizona.edu)
Date: Tue, 20 Sep 1994 15:41:27 -0500 (CDT)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Length: 486
Errors-To: icon-group-errors@cs.arizona.edu
Hi:
I have a C question that Icon'ers are more likely to understand than the
average run-of-the-mill C programmer, so here goes.
In Icon, if I say:
if <expr1> & <expr2> then <expr3> else <expr4>
and <expr1> fails, <expr2> will not be evaluated.
In C, if I say:
if ( <expr1> && <expr2> ) <expr3>; else <expr4>;
and <expr1> has a value of zero (NULL, etc.), is it defined (in the ANSI
standard, I guess) whether <expr2> will be evaluated or is this compiler
specific?
Thanks,
-Art